package 继承.final关键字;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 姚东名
 * Date: 2024-06-16
 * Time: 20:03
 */
/*
1. 修饰变量或字段，表示常量(即不能修改)
final int a = 10;
a = 20;//编译出错

2.修饰类：表示此类不能被继承
 */

final public class Animal {
    //...
}
